import { NgModule } from "@angular/core";
import { Routes, RouterModule } from "@angular/router";
import { DisplayComponent } from './display.component';
import { RiverComponent } from './river/river.component';
import { IraComponent } from "./ira/ira.component";
import { NingxiaComponent } from "./ningxia/ningxia.component";

const routes: Routes = [
    {
        path: "",
        component: DisplayComponent,
        children: [
            {
                path: 'river',
                component: RiverComponent
            },
            {
                path: 'ira',
                component: IraComponent
            },
            {
                path: 'nx',
                component: NingxiaComponent
            }
        ]
    }
];

@NgModule({
    imports: [RouterModule.forChild(routes)],
    exports: [RouterModule]
})
export class DisplayRoutingModule { }
